#include "smtechnique.h"
#include "smtechnique_impl.h"
#include <d3d9.h>
#include <assert.h>

namespace ZH
{
	SMTechnique* SMTechnique::CreateTechnique(LPDIRECT3DDEVICE9 device, const D3DLIGHT9& light)
	{
		switch (light.Type)
		{
		case D3DLIGHT_SPOT:
			return new SpotSMTechnique(device, light);
		default:
			assert(false);
		}
		return NULL;
	}
}	// end of namespace ZH
